/*
 * Copyright (c) 2018-2999 北京小象智慧信息科技有限公司 All rights reserved.
 *
 * https://www.xiaoxiangai.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.bean.model.User;
import com.yami.shop.bean.vo.UserVO;
import com.yami.shop.common.util.PageAdapter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

	User  getUserByBizUserId(@Param("appId")Integer appId, @Param("bizUserId")String bizUserId);

	User  getUserByyqm(@Param("yqm")String yqm);

	void  updateUserByuserid(@Param("userid")String userid,@Param("puserid")String puserid );

	String getBizUserId(@Param("userId")String userId);

	Long getAppConnectId(@Param("userId")String userId);

	String getUserByAppConnectId(@Param("id")Long id);

	List<User> getUserByPuserid(@Param("userId")String userId);

	String getOrderNumber(@Param("userId")String userId,@Param("puserId")String puserId);

	List<User> getMember(@Param("page") PageAdapter pag,@Param("tel")String tel);

	/**
	 *
	 * 查询会员数量
	 */
	int getMemberNumber(@Param("page") PageAdapter page,@Param("tel")String tel);

	List<User> getUserByPhone(@Param("phone") String phone);

	void addNewMember(User user);

	List<User> getUserByMobileOrNickName(@Param("searchField")String searchField);

	User selectUserByPhoneOne(@Param("mobile") String mobile);
}
